package com.hui.platform.falseworkapi.common.security.configurer;

import com.hui.platform.falseworkapi.common.security.base.IBasicHttpSecurityConfigurer;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.stereotype.Component;

/**
 * CSRF 关闭配置组件
 *
 * @author Peng
 * @date 2019/12/12
 */
@Component
public class CsrfBasicHttpSecurityConfigurer implements IBasicHttpSecurityConfigurer {

    @Override
    public void configure(HttpSecurity http) throws Exception {
        http.csrf().disable();
    }
}
